<%--
  Created by IntelliJ IDEA.
  User: 唐僧骑马洗头
  Date: 2021/8/16
  Time: 9:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <meta http-equiv="refresh" content ="5;url=/student/to_login">
</head>
<body onload="shownum()">
<div style="text-align: center; width: 1000px">
    <h1><i>你好！<h2>${name}欢迎来访海棠公寓，请注意疫情防护！！</h2></i></h1>
    <div id="time" style="text-align: right"></div>
</div>

</body>
<script>
    var i = 6;
    function shownum(){
        i = i-1;
        document.getElementById("time").innerHTML = i + "秒后自动跳转到登录页面!!";
        setTimeout('shownum()',1000);
    }
</script>
</html>
